#ifndef MANAGER_PRODUCT_H
#define MANAGER_PRODUCT_H

#include <QMainWindow>
#include"manager.h"
#include <QInputDialog>



namespace Ui {
class manager_product;
}

class manager_product : public QMainWindow
{
    Q_OBJECT

public:
    explicit manager_product(QWidget *parent = 0);
    ~manager_product();

private slots:
    void on_return_2_clicked();

    void on_refresh_clicked();

    void on_pushButton_clicked();

private:
    Ui::manager_product *ui;
    int insert_database(QString name, int price);
    void select_database();
    int new_id;
   QMyTableViewBtnDelegate *m_btnDelegate;
   void createTable();

};

#endif // MANAGER_PRODUCT_H
